package com.yeh.model.po;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * 
 * <p>Title: SysMenu</p>
 * <p>Description: 菜单实体类</p>
 * <p>Company:  Co.</p>
 * <p>Package: com.yeh.model.PO</p>
 * @author <a href="mailto:yehshuai@126.com">叶帅</a>  
 * <p>DateTime: 2015年9月15日 ★  下午3:40:36</p> 
 * @Version V1.0.0
 */
@Entity
@Table(name="sysmenu")
public class SysMenu implements Serializable{

	/**
	 * @Fields serialVersionUID : 
	 */
	private static final long serialVersionUID = 7424312318613243994L;
	
	private int sysMenuId;
	
	private int parentId;
	
	private String name;
	
	private String remark;
	
	private String icon;
	
	private String URL;
	/**
	 * 排序
	 */
	private int sortIndex;
	/**
	 * 使用状态
	 */
	private int useFlag;
	
	
	@javax.persistence.Column(name = "sysmenuid")
	@GeneratedValue(generator = "paymentableGenerator")
    @GenericGenerator(name = "paymentableGenerator", strategy = "uuid")
	@Id
	public int getSysMenuId() {
		return sysMenuId;
	}
	public void setSysMenuId(int sysMenuId) {
		this.sysMenuId = sysMenuId;
	}
	@javax.persistence.Column(name = "parentid")
	public int getParentId() {
		return parentId;
	}
	public void setParentId(int parentId) {
		this.parentId = parentId;
	}
	@javax.persistence.Column(name = "name")
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	@javax.persistence.Column(name = "remark")
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	@javax.persistence.Column(name = "icon")
	public String getIcon() {
		return icon;
	}
	public void setIcon(String icon) {
		this.icon = icon;
	}
	@javax.persistence.Column(name = "URL")
	public String getURL() {
		return URL;
	}
	public void setURL(String uRL) {
		URL = uRL;
	}
	@javax.persistence.Column(name = "sortindex")
	public int getSortIndex() {
		return sortIndex;
	}
	public void setSortIndex(int sort_index) {
		this.sortIndex = sort_index;
	}
	@javax.persistence.Column(name = "useflag")
	public int getUseFlag() {
		return useFlag;
	}
	public void setUseFlag(int useFlag) {
		this.useFlag = useFlag;
	}
	
	public SysMenu(){}
	
	public SysMenu(int sysMenuID,String name,int useFlag){
		this.sysMenuId = sysMenuID;
		this.name = name;
		this.useFlag = useFlag;
	}

	public SysMenu(int sysMenuId,int parentId,String name,String remark,String icon,String URL,int sortIndex,int useFlag){
		this.sysMenuId = sysMenuId;
		this.parentId = parentId;
		this.name = name;
		this.remark = remark;
		this.icon = icon;
		this.URL = URL;
		this.sortIndex = sortIndex;
		this.useFlag = useFlag;
	}
	
}
